﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>后台配置</title>
    <link rel='stylesheet' href="/static/css/css-pro-layout.css">
    <!-- <link rel='stylesheet' href='https://cdn.jsdelivr.net/npm/remixicon@2.2.0/fonts/remixicon.css'> -->
    <link rel='stylesheet' href='/static/css/4.2.0_fonts_remixicon.min.css'>
    <link rel="stylesheet" href="/static/css/style.css?t=1708865856766">
</head>

<body>
    <!-- partial:index.partial.html -->
    <div class="layout has-sidebar fixed-sidebar fixed-header">
        <aside id="sidebar" class="sidebar break-point-lg has-bg-image">
            <div class="image-wrapper">
                <!-- <img src="imgs/1.jpg" alt="sidebar background" /> -->
            </div>
            <div class="sidebar-layout">
                <div class="sidebar-header">
                    <span style="
                text-transform: uppercase;
                font-size: 15px;
                letter-spacing: 3px;
                font-weight: bold;
              ">企业微信机器人配置</span>
                </div>
                <div class="sidebar-content">
                    <nav class="menu open-current-submenu">
                        <ul>
                            <li class="menu-item" onclick=" loadPage('/static/validateForm.html')">
                                <a href="#" >

                                    <span class="menu-icon">
                                        <i class="ri-vip-diamond-fill"></i>
                                    </span>
                                    <span class="menu-title">应用校验</span>
<!--                                    图标-->
<!--                                    <span class="menu-suffix">&#x1F525;</span>-->
                                </a>

                            </li>
                            <li class="menu-item" onclick=" loadPage('/static/messageTable.html')">
                                <a href="#">
                                    <span class="menu-icon">
                                        <i class="ri-vip-diamond-fill"></i>
                                    </span>
                                    <span class="menu-title">聊天记录</span>
<!--                                    <span class="menu-suffix">&#x1F525;</span>-->
                                </a>
                            </li>
                            <li class="menu-item" onclick=" loadPage('/static/changePassword.html')">
                                <a href="#">
                                    <span class="menu-icon">
                                        <i class="ri-vip-diamond-fill"></i>
                                    </span>
                                    <span class="menu-title">修改密码</span>
                                </a>
                            </li>
                            <li class="menu-item" onclick=" loadPage('/static/systemConfig.html')">
                                <a href="#">
                                    <span class="menu-icon">
                                        <i class="ri-vip-diamond-fill"></i>
                                    </span>
                                    <span class="menu-title">消息模板</span>
                                </a>
                            </li>
                            <li class="menu-item" onclick=" loadPage('/static/apConfig.html')">
                                <a href="#">
                                    <span class="menu-icon">
                                        <i class="ri-vip-diamond-fill"></i>
                                    </span>
                                    <span class="menu-title">AI Power</span>
                                </a>
                            </li>
                            <!-- <li class="menu-item sub-menu">
                                <a href="#">
                                    <span class="menu-icon">
                                        <i class="ri-service-fill"></i>
                                    </span>
                                    <span class="menu-title">Examples</span>
                                </a>
                                <div class="sub-menu-list">
                                    <ul>
                                        <li class="menu-item">
                                            <a href="#">
                                                <span class="menu-title">Grid</span>
                                            </a>
                                        </li>
                                        <li class="menu-item">
                                            <a href="#">
                                                <span class="menu-title">Layout</span>
                                            </a>
                                        </li>
                                        <li class="menu-item sub-menu">
                                            <a href="#">
                                                <span class="menu-title">Forms</span>
                                            </a>
                                            <div class="sub-menu-list">
                                                <ul>
                                                    <li class="menu-item">
                                                        <a href="#">
                                                            <span class="menu-title">Input</span>
                                                        </a>
                                                    </li>
                                                    <li class="menu-item">
                                                        <a href="#">
                                                            <span class="menu-title">Select</span>
                                                        </a>
                                                    </li>
                                                    <li class="menu-item sub-menu">
                                                        <a href="#">
                                                            <span class="menu-title">More</span>
                                                        </a>
                                                        <div class="sub-menu-list">
                                                            <ul>
                                                                <li class="menu-item">
                                                                    <a href="#">
                                                                        <span class="menu-title">CheckBox</span>
                                                                    </a>
                                                                </li>
                                                                <li class="menu-item">
                                                                    <a href="#">
                                                                        <span class="menu-title">Radio</span>
                                                                    </a>
                                                                </li>
                                                                <li class="menu-item sub-menu">
                                                                    <a href="#">
                                                                        <span class="menu-title">Want more ?</span>
                                                                        <span class="menu-suffix">&#x1F914;</span>
                                                                    </a>
                                                                    <div class="sub-menu-list">
                                                                        <ul>
                                                                            <li class="menu-item">
                                                                                <a href="#">
                                                                                    <span class="menu-prefix">&#127881;</span>
                                                                                    <span class="menu-title">You made it </span>
                                                                                </a>
                                                                            </li>
                                                                        </ul>
                                                                    </div>
                                                                </li>
                                                            </ul>
                                                        </div>
                                                    </li>
                                                </ul>
                                            </div>
                                        </li>
                                    </ul>
                                </div>
                            </li> -->

                        </ul>
                    </nav>
                </div>
                <div class="sidebar-footer"><span>更多设置</span></div>
            </div>
        </aside>
        <div id="overlay" class="overlay"></div>
        <div class="layout">
            <header class="header">
                <a id="btn-collapse" href="#">
                    <i class="ri-menu-line ri-xl"></i>
                </a>
                <a id="btn-toggle" href="#" class="sidebar-toggler break-point-lg">
                    <i class="ri-menu-line ri-xl"></i>
                </a>
            </header>
            <main class="content">
                <h1>
                    企业微信机器人配置
                </h1>
            </main>
            <div class="overlay"></div>
        </div>
    </div>
    <!-- partial -->
    <script src='/static/js/popper.min.js'></script>
    <script src="/static/js/script.js"></script>
</body>
<style>
body,
aside {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh; /* 100%视口高度，使内容区域满屏 */
  box-sizing: border-box;
  overflow-y: scroll; /* 显示垂直滚动条 */
}

/* 自定义滚动条样式 */
body::-webkit-scrollbar,
aside::-webkit-scrollbar {
  width: 10px;
}

body::-webkit-scrollbar-thumb,
aside::-webkit-scrollbar-thumb {
  background-color: #c1c1c1;
  border-radius: 5px;
}

body::-webkit-scrollbar-track,
aside::-webkit-scrollbar-track {
  background-color: #f4f4f4;
}

body::-webkit-scrollbar-thumb:hover,
aside::-webkit-scrollbar-thumb:hover {
  background-color: #cf2121;
}

</style>
<script>
function loadPage(url) {
      // 获取 main 元素
      const contentContainer = document.querySelector('body > div > div.layout > main');
      console.log(contentContainer);
      // 创建一个 iframe 元素
      const iframe = document.createElement('iframe');

      // 设置 iframe 的 src 属性为指定的页面路径
      iframe.src = url;

      // 设置 iframe 样式，使其填充整个 main 区域
      iframe.style.width = '100%';
      iframe.style.height = '100%';
      iframe.style.border = 'none'; // 可以去掉边框


      // 清空 main 元素的内容
      contentContainer.innerHTML = '';

    // 将 iframe 插入到 main 元素中
      contentContainer.appendChild(iframe);

     // 设置菜单栏状态
    // 获取ID为"sidebar"的元素
    var sidebarElement = document.getElementById("sidebar");
    // 修改元素的class值
    sidebarElement.className = "sidebar break-point-lg has-bg-image";

    }

</script>
</html>
